package dao.auth;

import java.util.List;
import java.util.Map;

import model.auth.Roles;
import model.auth.Users;
import model.auth.UsersRoles;
import core.base.page.Page;
import core.base.page.PageRequest;

public interface UsersRolesDao {
	
	int insert(UsersRoles model);

	UsersRoles getById(Long id);

	int deleteById(Long id);
	
	List<Users> getUsersByRoleId(Long roleId);
	
	List<Roles> getRolesByUserId(Long userId);
	
	Page<Users> queryUsersForPage(PageRequest<Map> pageReq);
	
	Page<Roles> queryRolesForPage(PageRequest<Map> pageReq);
}
